package utils;

import java.sql.Connection;
import java.sql.DriverManager;

public class JDBCUtils {
    public static Connection getConnection()throws Exception{
        Class.forName("com.mysql.cj.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/atm?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true";

        return DriverManager.getConnection(url,"root","lyt958524377394");
    }


}
